This guide will help you host an APT repository on Github.
You need to install the following packages.
- reprepro
Here is easy steps to try Windows 10 on ARM or Ubuntu for ARM64 on your Apple Silicon Mac. Enjoy!
NOTE: that this is current, 10/1/2021 state.
__author__ = 'ivoronin' | |
from pygments.lexer import RegexLexer, bygroups, include | |
from pygments.token import * | |
class StraceLexer(RegexLexer): | |
name = "Strace" | |
aliases = ["strace", "truss"] | |
tokens = { | |
'generic': [ |
expandArgs expands any named args that are slices into multiple named args, one for each element in the slice. This is useful for queries that use the IN operator, e.g. SELECT * FROM table WHERE id IN (:id)
Source: https://wiki.archlinux.org/title/Visual_Studio_Code#Blurry_text_under_Wayland
Due to Electron issues Visual Studio Code defaults to run under XWayland which may cause blurry text if you're using HiDPI screens.
In order to fix this issue you need to force Electron to run under Wayland by adding --enable-features=UseOzonePlatform --ozone-platform=wayland
, for example you'll be launching VSCode like
$ code --enable-features=UseOzonePlatform --ozone-platform=wayland
This fix can be made permanent by creating a .desktop
file or by directly editing /usr/share/applications/visual-studio-code.desktop
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
// ES6 version using asynchronous iterators, compatible with node v10.0+ | |
const fs = require("fs"); | |
const path = require("path"); | |
async function* walk(dir) { | |
for await (const d of await fs.promises.opendir(dir)) { | |
const entry = path.join(dir, d.name); | |
if (d.isDirectory()) yield* walk(entry); | |
else if (d.isFile()) yield entry; |